package com.king.springcloud.service;

import com.king.springcloud.entities.CommonResult;
import com.king.springcloud.entities.PaymentEntity;
import org.springframework.stereotype.Component;

/**
 * @author king
 * @date 2020/10/20 17:38
 */
@Component
public class PaymentFallbackService implements PaymentService{

    @Override
    public CommonResult<PaymentEntity> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回...", new PaymentEntity(id, null));
    }
}
